<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWorshipHymnAlbumTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('worship_hymn_album', function (Blueprint $table) {
            $table->integer('hymn_id')->index('admin_user_role_user_id_index');
            $table->integer('album_id')->index('admin_user_role_role_id_index');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('worship_hymn_album');
    }
}
